package adapter.impl;



import java.awt.Point;
import java.util.ArrayList;

import adapter.TowerDefenseTestAdapterExtended1;
import adapter.TowerDefenseTestAdapterMinimal;
import Exceptions.InvalidArgument;
import GameElements.CTDTower;
import GameLogic.CTDGameLogic;
import IO.Path;



public class TowerDefenseTestAdapterExtended1Impl extends TowerDefenseTestAdapterMinimalImpl implements TowerDefenseTestAdapterExtended1{

	@Override
	public void buyAndPlaceDefaultTowerTo(Point coordinates) {
		CTDTower _tower = new CTDTower();
		_tower.setPosX(coordinates.x);
		_tower.setPosY(coordinates.y);
		_tower.setAttrange(30);
		_tower.setAttrate(100);
		_tower.setDamage(100);
		_tower.setLevel(1);
		_tower.setName("TestTower");
		_tower.setCost(100);
		_tower.setUpgradeCost(1000);
		try {
			game.BuyTower(_tower);
		} catch (InvalidArgument e) {
			System.out.println("Given parameter(s) are/is out of bound(s).");
		}
	}

	@Override
	public void setMoney(double value) {
		game.setGold(value);
		
	}

	@Override
	public double getMoney() {
		
		return game.getGold();
	}

}
